package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors
@AllArgsConstructor
//实现对象与表的映射
@TableName(value = "user")//写出对象的表名
public class Users {
    @TableId(type = IdType.AUTO)
    private Integer id;
    //@TableField("name")如果数据库字段名字与属性名称一致则可以省略不屑
    private String name;
    private Integer age;
    private String sex;


}
